
package com.plian.system.service.pm.appraisalreportback.impl;


import com.plian.system.entity.pm.appraisalreportback.AppraisalReportBack;
import com.plian.system.mapper.pm.appraisalreportback.AppraisalReportBackMapper;
import com.plian.system.mybatis.base.BaseServiceImpl;
import com.plian.system.mybatis.support.Condition;
import com.plian.system.service.pm.appraisalreportback.IAppraisalReportBackService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 评估报告 服务实现类
 *
 * @author gangan
 * @since 2019-10-18
 */
@Slf4j
@Service
@AllArgsConstructor
public class AppraisalReportBackServiceImpl extends BaseServiceImpl<AppraisalReportBackMapper, AppraisalReportBack> implements IAppraisalReportBackService {
    @Override
    public List<AppraisalReportBack> ListByParent(String pid){
        return list(Condition.getQueryWrapper(new AppraisalReportBack()).lambda().eq(AppraisalReportBack::getIsDeleted,0).eq(AppraisalReportBack::getInvestmentupRecordId, pid));
    }
}
